package com.ymatou.iapi.productmanager.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.productmanager.parameter.UpdateAuditStatusBean;
import com.ymatou.iapi.productmanager.service.UpdateAuditStatusCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
import com.ymttest.business.service.ProductManagerCallServiceV3;
/**
*更新商品审核状态(MQ)Test
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_UpdateAuditStatus{
	private static UpdateAuditStatusBean updateauditstatusBean;
	private static UpdateAuditStatusCall updateauditstatusCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("更新商品审核状态(MQ)Test");
	}

	@Before
	public void caseUp() {
		updateauditstatusBean=new UpdateAuditStatusBean();
		updateauditstatusCall=new UpdateAuditStatusCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(updateauditstatusCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_UpdateAuditStatus_001() {
		Logger.start(true,"正确数据，成功");
		try {
//			ProductManagerCallServiceV3.UpdateAuditStatus(productId, 1);
//			updateauditstatusCall.setData(updateauditstatusBean);
//			updateauditstatusCall.callService();			
//			Logger.verifyEquals("200", updateauditstatusCall.getString("code"), "验证code");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}